<template>
  <div class="container">
    <div class="img">
      <img src="https://h5.ameimeika.com/mp_images/shangcheng/zhifuchenggong@2x.png"
           alt=""
           class="icon">
      <p class="tip">订单支付成功</p>
      <button class="btn"
              @click="tocheckOrder"
              :disabled="isdisabled">
        查看订单
      </button>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      isdisabled: false,
    };
  },
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: "支付成功"
    });
    wx.setStorageSync("location_sign", "");
  },
  methods: {
    tocheckOrder () {
      wx.redirectTo({ url: "/pages/package_mine/my_order/main?type=2" });
    }
  }
};
</script>
<style scoped>
.container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f3f4f6;
}
.img {
  width: 100%;
  padding-top: 78px;
  text-align: center;
}
.icon {
  width: 105px;
  height: 105px;
}
.tip {
  font-size: 17px;
  color: #444444;
  font-weight: 600;
}
.btn {
  width: 180px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #fff;
  background: #ff383e;
  border-radius: 20px;
  margin-top: 55px;
}
</style>


